
#ifndef _UDISK_TASK_H
#define	_UDISK_TASK_H

#include <stdint.h>
#include "dataproc.h"
#include "pulse.h"
#include "rtctime.h"
#include "mytype.h"
#include "iohandle.h"

#ifdef	__cplusplus
extern "C" {
#endif
	
#ifdef   _UDISK_TASK_MODULE_
#define  MY_EXT
#else
#define  MY_EXT  extern
#endif  


typedef struct 
{
    uint8_t tst_end;
    uu32 fil_opt_st;
        
    uu32 fil_write_time;
    uu32 file_write_size;
	
    struct
    {
        uint8_t b_cd_found;
        
        uint8_t b_init_ok;
        
    } connect;
    
    long long total_size;
    long block_size;
    
} udisk_run_st_type;

MY_EXT udisk_run_st_type udisk_st;

#undef MY_EXT

#ifdef	__cplusplus
}
#endif

#endif	/* _UDISK_TASK_H */
